package com.techsoft.config;

import java.util.ResourceBundle;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class Configure {
	private static ResourceBundle config = null;
	private static Log log = LogFactory.getLog(Configure.class);

	static {
		config = ResourceBundle.getBundle("database");
	}

	public static String getValue(String key) {
		if (config.containsKey(key)) {
			return config.getString(key);
		} else {
			log.info(new StringBuilder("configure key").append(key).append(
					" not found.").toString());
			return null;
		}
	}
}
